<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06_Promise-Promise的catch方法调度</title>
</head>
<body>

  <script>
    const promise = new Promise((resolve, reject) => {
      reject('error')
    })

    promise.then(res => {
      console.log("成功的回调:", res)
    }).catch((err) => {
      console.log("失败", err);
    })

    promise.catch(err => {
      console.log("失败的回调1:", err)
    })
    promise.catch(err => {
      console.log("失败的回调2:", err)
    })
    promise.catch(err => {
      console.log("失败的回调3:", err)
    })
    promise.catch(err => {
      console.log("失败的回调4:", err)
    })


  </script>
  
</body>
</html>